<?php

include_package( 'Xml' );

class XmlDatabaseTableListElement extends XmlElement {

	function XmlDatabaseTableListElement( &$oConfiguration, $aTableList, $sSuffix = '' ) {
		if ( $sSuffix ) $this->XmlElement( 'TABLE_' . strtoupper( $sSuffix ). '_LIST' );
		else $this->XmlElement( 'TABLE_LIST' );
		
		foreach ( $aTableList as $oThisTable ) {
			$this->AddElement( new XmlDatabaseTableElement( $oConfiguration, $oThisTable ) );
		}
	}
}

require_once( 'XmlDatabaseTableElement.php' );
	
?>
